<?php
//var_dump($payment_value);
?>

<link rel="stylesheet" href="<?=style_url('yahoocssreset');?>">
<link rel="stylesheet" href="<?=style_url('formletter');?>">

<div>

	<table><tr><td>&nbsp;</td></tr><tr><td>&nbsp;</td></tr></table>

	<table cellPadding="0" cellSpacing="2" style="width:818px;">
		<tr>
			<td style="width:200px; vertical-align:top; text-align:right;">
				<p><img src="<?=image_url('school_logo.png');?>" height="100" width="100";/></p>
			</td>
			<td style="width:418px; vertical-align:top; text-align:center;">
				<p>&nbsp;</p>
				<p>WESTFIELDS INTERNATIONAL SCHOOL</p>
				<p>SCHEDULE OF INSTALLMENT PLAN DUE DATES</p>
				<p>SY <?php echo $profiles->e_sy_from; ?>-<?php echo $profiles->e_sy_to; ?></p>
			</td>
			<td style="width:200px; vertical-align:top;">&nbsp;</td>
		</tr>
	</table>

	<table cellPadding="0" cellSpacing="2">
		<tr>
			<td style="width:100px;">&nbsp;</td>
			<td style="width:618px; text-align:center; border:#000 1px solid">
				<p>THIS WILL SERVE AS YOUR</p>
				<p style="font-weight:bold; text-decoration:underline;">STATEMENT OF ACCOUNT</p>
				<p>FOR THE SCHOOL YEAR <?php echo $profiles->e_sy_from; ?>-<?php echo $profiles->e_sy_to; ?></p>
			</td>
			<td style="width:100px;">&nbsp;</td>
		</tr>
	</table>

	<table border="0" cellpadding="0" cellspacing="0" style="width:818px;">
		<tr><td colspan="6">&nbsp;</td></tr>
		<tr>
			<td style="width:49px;">&nbsp;</td>
			<td style="width:50px;">&nbsp;</td>
			<td style="width:3px;">&nbsp;</td>
			<td style="width:310px; font-weight:bold; text-decoration:underline; text-align:center; padding:4px;">DUE DATES:</td>
			<td style="width:310px; font-weight:bold; text-decoration:underline; text-align:center; padding:4px;">AMOUNT DUE:</td>
			<td style="width:96px;">&nbsp;</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td style="border:#000 1px solid; text-align:center;"><?php echo $payment_value->payment_mode=="2- payment plan"?'<span style="font-weight:bold;">X</span>':'&nbsp;'; ?></td>
			<td>&nbsp;</td>
			<td colspan="2" style="padding:2px 4px;">2 (TWO ) INSTALLMENT PAYMENT PLAN</td>
			<td>&nbsp;</td>
		</tr>
		<?php
		foreach($payment_plan_value as $ppv)
		{
			if($ppv->payment_mode_name ='2- payment plan'){
				$ppv_value = $ppv->payment_plan_amount;
			}
		}
		?>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td style="border:#000 1px solid; padding:2px 4px;">OCTOBER 5, <?php echo $profiles->e_sy_from; ?></td>
			<td style="border:#000 1px solid; padding:2px 4px;"><?php echo 'PhP '.number_format($ppv_value,2,".",","); ?></td>
			<td>&nbsp;</td>
		</tr>
		<tr><td colspan="6">&nbsp;</td></tr>
		<tr>
			<td>&nbsp;</td>
			<td style="border:#000 1px solid; text-align:center;"><?php echo $payment_value->payment_mode=="4- payment plan"?'<span style="font-weight:bold;">X</span>':'&nbsp;'; ?></td>
			<td>&nbsp;</td>
			<td colspan="2" style="padding:2px 4px;">4 (FOUR ) INSTALLMENT PAYMENT PLAN</td>
			<td>&nbsp;</td>
		</tr>
		<?php
		foreach($payment_plan_value as $ppv)
		{
			if($ppv->payment_mode_name ='4- payment plan'){
				$ppv_value = $ppv->payment_plan_amount;
			}
		}
		?>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td style="border:#000 1px solid; padding:2px 4px;">AUGUST 5, <?php echo $profiles->e_sy_from; ?></td>
			<td style="border-top:#000 1px solid; border-right:#000 1px solid; border-bottom:#000 1px solid; padding:2px 4px;"><?php echo 'PhP '.number_format($ppv_value,2,".",","); ?></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td style="border-left:#000 1px solid; border-bottom:#000 1px solid; border-right:#000 1px solid; padding:2px 4px;">OCTOBER 5, <?php echo $profiles->e_sy_from; ?></td>
			<td style="border-right:#000 1px solid; border-bottom:#000 1px solid; padding:2px 4px;"><?php echo 'PhP '.number_format($ppv_value,2,".",","); ?></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td style="border-left:#000 1px solid; border-bottom:#000 1px solid; border-right:#000 1px solid; padding:2px 4px;">DECEMBER 5, <?php echo $profiles->e_sy_from; ?></td>
			<td style="border-right:#000 1px solid; border-bottom:#000 1px solid; padding:2px 4px;"><?php echo 'PhP '.number_format($ppv_value,2,".",","); ?></td>
			<td>&nbsp;</td>
		</tr>
		<tr><td colspan="6">&nbsp;</td></tr>
		<tr>
			<td>&nbsp;</td>
			<td style="border:#000 1px solid; text-align:center;"><?php echo $payment_value->payment_mode=="9- payment plan"?'<span style="font-weight:bold;">X</span>':'&nbsp;'; ?></td>
			<td>&nbsp;</td>
			<td colspan="2" style=" padding:2px 4px;">9 (NINE ) INSTALLMENT PAYMENT PLAN</td>
			<td>&nbsp;</td>
		</tr>
		<?php
		foreach($payment_plan_value as $ppv)
		{
			if($ppv->payment_mode_name ='9- payment plan'){
				$ppv_value = $ppv->payment_plan_amount;
			}
		}
		?>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td style="border:#000 1px solid; padding:2px 4px;">JULY 5, <?php echo $profiles->e_sy_from; ?></td>
			<td style="border-top:#000 1px solid; border-right:#000 1px solid; border-bottom:#000 1px solid; padding:2px 4px;"><?php echo 'PhP '.number_format($ppv_value,2,".",","); ?></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td style="border-left:#000 1px solid; border-bottom:#000 1px solid; border-right:#000 1px solid; padding:2px 4px;">AUGUST 5, <?php echo $profiles->e_sy_from; ?></td>
			<td style="border-right:#000 1px solid; border-bottom:#000 1px solid; padding:2px 4px;"><?php echo 'PhP '.number_format($ppv_value,2,".",","); ?></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td style="border-left:#000 1px solid; border-bottom:#000 1px solid; border-right:#000 1px solid; padding:2px 4px;">SEPTEMBER 5, <?php echo $profiles->e_sy_from; ?></td>
			<td style="border-right:#000 1px solid; border-bottom:#000 1px solid; padding:2px 4px;"><?php echo 'PhP '.number_format($ppv_value,2,".",","); ?></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td style="border-left:#000 1px solid; border-bottom:#000 1px solid; border-right:#000 1px solid; padding:2px 4px;">OCTOBER 5, <?php echo $profiles->e_sy_from; ?></td>
			<td style="border-right:#000 1px solid; border-bottom:#000 1px solid; padding:2px 4px;"><?php echo 'PhP '.number_format($ppv_value,2,".",","); ?></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td style="border-left:#000 1px solid; border-bottom:#000 1px solid; border-right:#000 1px solid; padding:2px 4px;">NOVEMBER 5, <?php echo $profiles->e_sy_from; ?></td>
			<td style="border-right:#000 1px solid; border-bottom:#000 1px solid; padding:2px 4px;"><?php echo 'PhP '.number_format($ppv_value,2,".",","); ?></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td style="border-left:#000 1px solid; border-bottom:#000 1px solid; border-right:#000 1px solid; padding:2px 4px;">DECEMBER 5, <?php echo $profiles->e_sy_from; ?></td>
			<td style="border-right:#000 1px solid; border-bottom:#000 1px solid; padding:2px 4px;"><?php echo 'PhP '.number_format($ppv_value,2,".",","); ?></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td style="border-left:#000 1px solid; border-bottom:#000 1px solid; border-right:#000 1px solid; padding:2px 4px;">JANUARY 5, <?php echo $profiles->e_sy_to; ?></td>
			<td style="border-right:#000 1px solid; border-bottom:#000 1px solid; padding:2px 4px;"><?php echo 'PhP '.number_format($ppv_value,2,".",","); ?></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td style="border-left:#000 1px solid; border-bottom:#000 1px solid; border-right:#000 1px solid; padding:2px 4px;">FEBUARY 5, <?php echo $profiles->e_sy_to; ?></td>
			<td style="border-right:#000 1px solid; border-bottom:#000 1px solid; padding:2px 4px;"><?php echo 'PhP '.number_format($ppv_value,2,".",","); ?></td>
			<td>&nbsp;</td>
		</tr>
		<tr><td colspan="6">&nbsp;</td></tr>
		<tr><td colspan="6">&nbsp;</td></tr>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td colspan="2" style="text-align:justify;"><span style="font-weight:bold;">NOTE:</span> PAYMENTS SHOULD BE MADE ON OR BEFORE THE DUE DATE. A PENALTY OF <span style="font-weight:bold;">P50.00/DAY</span> WILL BE IMPOSED ON LATE PAYMENTS COMPOUNDED.</td>
			<td>&nbsp;</td>
		</tr>
		<tr><td colspan="6">&nbsp;</td></tr>
		<tr>
			<td colspan="3">&nbsp;</td>
			<td colspan="2">THANK YOU.</td>
			<td>&nbsp;</td>
		</tr>
		<tr><td colspan="6">&nbsp;</td></tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td colspan="2"><table><tr><td style="width:200px;">BUSINESS OFFICE</td><td style="width:120px;">RELEASED BY:</td><td style="width:200px; border-bottom:#000 1px solid;">&nbsp;</td><td style="width:100px;">&nbsp;</td></tr></table></td>
			<td>&nbsp;</td>
		</tr>
		<tr><td colspan="6">&nbsp;</td></tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td colspan="2"><hr></td>
			<td>&nbsp;</td>
		</tr>
		<tr><td colspan="6">&nbsp;</td></tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td colspan="2"><table><tr><td style="width:50px;">DATE:</td><td style="width:150px; border-bottom:#000 1px solid;"><?php echo date('F d, Y',strtotime($dater)); ?></td><td style="width:420px;">&nbsp;</td></tr><tr><td colspan="5">&nbsp;</td></tr><tr><td style="text-align:justify;" colspan="5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is to acknowledge the statement of account issued upon enrollment. I am aware that I won't be able to issue postdated checks for the succeeding payment. Payment's will be mde in cash, check or credit cards on the said due dates. A penalty of <span style="font-weight:bold;">P50.00/day</span> will be imposed on late payments.</td></tr></table></td>
			<td>&nbsp;</td>
		</tr>
		<tr><td colspan="6">&nbsp;</td></tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td colspan="2"><table><tr><td style="width:150px;">Parent's Printed Name</td><td style="width:390px; border-bottom:#000 1px solid;">&nbsp;</td><td style="width:80px;">&nbsp;</td></tr></table></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td colspan="2"><table><tr><td style="width:70px;">Signature:</td><td style="width:470px; border-bottom:#000 1px solid;">&nbsp;</td><td style="width:80px;">&nbsp;</td></tr></table></td>
			<td>&nbsp;</td>
		</tr>
	</table>
</div>